
package com.dews.information.convert;

import com.dews.information.domain.vo.SubjectVo;
import com.dews.information.domain.dto.SubjectSaveDTO;
import com.dews.information.domain.dto.SubjectUpdateDTO;
import com.dews.information.domain.entity.Subject;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectConvert {

    SubjectConvert INSTANCE = Mappers.getMapper(SubjectConvert.class);

    Subject convert(SubjectVo bean);
    SubjectVo convert(Subject domain);
    Subject convert(SubjectSaveDTO subjectSaveDTO);
    Subject convert(SubjectUpdateDTO subjectUpdateDTO);
    List<SubjectVo> convert(List<Subject> domains);
}
